@extends('backend::layout')
@section('title',$page_title)
@section('content')
    @if(isset($search))
        {{$search->render()}}
    @endif
    @component('backend::component.table.table-content')
        @slot('page_title') {{$page_title}} @endslot
        @slot('body_content')
            @if($list->isNotEmpty())
                <div class="table-responsive">
                    <table class="list table table-bordered table-striped">
                        <thead>
                        <tr>
                            <th>
                                @component('backend::component.checkbox')
                                    @slot('name') ids-all @endslot
                                @endcomponent
                            </th>
                            <th>转出币</th>
                            <th>转出会员</th>
                            <th>转出金额</th>
                            <th>转入币</th>
                            <th>转入会员</th>
                            <th>转入金额</th>
                            <th>转比</th>
                            <th>转账时间</th>
                            <th>操作转币会员的ip</th>
                        </tr>
                        </thead>
                        <tbody>
                        @foreach($list as $item)
                            <tr>

                                <td class="text-truncate">
                                    @component('backend::component.checkbox')
                                        @slot('name') wd_id[] @endslot
                                        @slot('class') id @endslot
                                        @slot('value') {{$item->id}} @endslot
                                    @endcomponent
                                </td>
                                <td>
                                    {{get_currency()['money'.$item->out_mid]}}
                                </td>
                                <td class="text-truncate text-more-hide">
                                    {{$item->user->user_number}}[{{$item->user->real_name}}]<br/>
                                    {{$item->user->user_phone}}
                                </td>
                                <td>
                                    金额:{{$item->out_money}}<br/>
                                </td>
                                <td>
                                    {{get_currency()['money'.$item->in_mid]}}
                                </td>
                                <td class="text-truncate text-more-hide">
                                    {{$item->to_users->user_number}}[{{$item->to_users->real_name}}]<br/>
                                    {{$item->to_users->user_phone}}
                                </td>
                                <td>
                                    金额:{{$item->in_money}}
                                </td>
                                <td>
                                    {{$item->tfrate}}
                                </td>

                                <td>
                                    {{$item->created_at}}

                                </td>
                                <td>
                                    {{$item->op_ip}}
                                </td>
                            </tr>
                        @endforeach
                        </tbody>
                    </table>
                    @slot('list_page')
                        {{$list->appends($search->getSearchData())->links('backend::public.pagination')}}
                    @endslot
                </div>
            @else
                @include('backend::public.empty_page',['info'=>'暂时没有提现申请'])
            @endif
        @endslot
    @endcomponent
@endsection